<!DOCTYPE html>
<html>
<head>
    <title>搜索 {$site_name}</title>
    <meta name="keywords" content=""/>
    <meta name="description" content="">
    <tc_include file="Public:head"/>
    <link rel="stylesheet" href="/public/css/sl_style.css?v={$SOURCE_VERSION}">
    <style>
        .questions_btm span:not(:last-child):after {
            content: "、";
        }
        .article_list {
            height: 161px;
        }
        .wx_icon1 {margin-right:34px;position: relative;top: 4px; display: inline-block;width: 20px;height:18px;background: url("/public/images/img/wx_lg.png") no-repeat center bottom;background-size: 20px 18px; margin-left: 6px;}
        .share-code {
            position: absolute;
            top: -88px;
            left: -36px;
            width: 140px;
            height:60px;
            padding:10px 10px 10px 80px;
            box-shadow: 0 0 2px #ddd;
            font-size: 14px;
            line-height: 20px;
            background-color: #fff;
            display: none;
        }
         .wx_icon1:hover .share-code{
            display: block;
        }
         .share-code img {
            position: absolute;
            left: 0px;
            top: 0px;
            width: 80px;
            height: 80px;
        }
        .sub_icon {
            display: inline-block;
        }

        /*右边栏活动删除，左侧居中显示代码*/
        .search_result {
            float: none;
            margin-left: auto;
            margin-right: auto;
        }
        /*专栏作者样式独立版*/
        .expert_info {

        }
        .expert_info .expert_info_item {
            width: 330px;
            height: 80px;
            position: relative;
            border: 1px solid rgba(0,2,50,0.5);
            float: left;
            margin-top: 50px;
            margin-left: 32px;
        }
        .expert_info_item .ground_img{
            width: 60px;
            height: 60px;
            position: absolute;
            top: -30px;
            left: 18px;
        }
        .expert_info_item .ground_img img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
        .expert_info_item  .info_top {
            padding-left: 88px;
            color: #000232;
            margin-top: -26px;
        }
        .expert_info_item  .info_top .name {
            font-size: 18px;
            font-weight: 500!important;
            color: #000232;

        }
        .expert_info_item  .info_top span{
            color: #000232;
            font-size: 14px;
            font-weight: bolder;
        }
        .expert_info_item .text {
            font-size: 14px;
            color: #707070;
            margin: 10px 16px 16px;
            line-height: 20px;
        }
        .expert_info_item  .info_top .company {
            box-sizing: border-box;
            overflow: hidden;
            -ms-text-overflow: ellipsis;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    </style>
</head>
<body class="">
<tc_include file="Public:nav"/>
<div class="container tc-main clearfix" style="width: 1190px;margin-top: 54px;">
    <div class="bjta">
    </div>
    <div class="search_result">
        <ul class="nav" id="nav">
            <li>文章</li>
            <li>快讯</li>
            <li>行家</li>
            <li>问答</li>
        </ul>
        <div class="result_content" id="result_content">

            <div class="result_content_item" style="display:none;">
                <ul>
                    <volist name="lists" id="vo">
                        <php>
                            $smeta      = json_decode($vo['smeta'], true);
                            $postdate   = time_format($vo['post_date']);
                            $label_names= explode(',', $vo['label_names']);
                        </php>
                        <a href="{:U('article/article_info', ['id' => $vo['id']])}">
                            <li class="article_list clearfix">
                                <div class="fl" style="margin-top: 2px;">
                                    <img class="my-photo" src="{:sp_get_asset_upload_path($smeta['thumb'])}" alt="">
                                </div>
                                <div class="rtarea clearfix">
                                    <h3 class="moretext2">{$vo.post_title}</h3>
                                    <p class="words moretext4">{$vo.post_excerpt}</p>
                                    <div class=" left sub_icon">

                                        <div class="right" style="font-size: 12px;color: #a9a9a9;margin-top: 3px;">
                                            <span>{$vo.post_author_name|default=$vo['user_nicename']}</span>
                                            <span style="margin-left: 28px;">{$postdate}</span>
                                        </div>
                                        <volist name="label_names" id="vo_label">
                                            <span style="margin-right: 16px;">{$vo_label}</span>
                                        </volist>
                                    </div>
                                </div>
                            </li>
                        </a>
                    </volist>
                </ul>
            </div>


            <div class="result_content_item" style="display:none;">
                <ul>
                    <volist name="lists" id="vo">
                        <php>
                            $postdate   = time_format($vo['post_date']);
                            $label_names= explode(',', $vo['labels_name']);
                        </php>
                        <li class="fastNews_list">
                            <h3 class="moretext2 ">{$vo.post_title}</h3>
                            <p class="words moretext4">{$vo.post_excerpt}</p>
                            <p class="original_link">
                                <a href="{$vo['post_source']}" target="_blank">原文链接&gt;</a>
                            </p>
                            <p class="sub_icon clearfix" style="height: 20px;">
                                <volist name="label_names" id="vo_label">
                                    <span class="fl">{$vo_label}</span>
                                </volist>
                            <div class="fr" style="font-size: 12px;color: #a9a9a9;display: inline-block;">
                                <div class="wx_icon1">
                                    <div class="share-code">
                                        <img class="my-photo" src="{$vo.qrcode}" alt="">
                                        打开微信“扫一扫”，打开网页后点击屏幕右上角分享按钮
                                        <span class="sanjiao" ></span>
                                    </div>

                                </div>
                                <div style="display: inline-block;">
                                    <span>{$vo.post_author_name|default=$vo['user_nicename']}</span>
                                    <span style="margin-left: 28px;">{$postdate}</span>
                                </div>
                            </div>
                            </p>
                        </li>
                    </volist>
                </ul>
            </div>

            <div class="result_content_item" style="display:none;">
                <div class="expert_info">
                    <ul>
                        <volist name="lists" id="vo">
                            <a href="{:U('User/index/professor_homepage', ['professor_id' => $vo['id']])}">
                                <li class="expert_info_item">
                                    <div class="ground_img">
                                        <img class="my-photo" src="{:sp_get_user_avatar_url($vo['avatar'])}?t={:time()}" alt="">
                                    </div>
                                   <div class="info_top">
                                       <p class="name">{$vo.user_nicename|default=$vo['user_login']}</p>
                                       <p class="company">
                                           <span>{$vo.company}</span><span style="margin-left: 8px;">ceo</span>
                                       </p>
                                   </div>
                                    <p class="text ellipsis2">{$vo.signature}</p>
                                </li>
                            </a>
                        </volist>
                    </ul>
                </div>
            </div>


            <div class="result_content_item" style="display:none;">
                <ul>
                    <volist name="lists" id="vo">
                        <a href="{:U('Question/Question/question_info', ['id' => $vo['id']])}">
                            <li class="problem_list">
                                <h3 class="moretext2">{$vo.post_title}</h3>
                                <p class="answer_btm ellipsis1 questions_btm">
                                    回答者:
                                    <volist name="vo.answer_names" id="vo_n">
                                        <span>{$vo_n}</span>
                                    </volist>
                                </p>
                            </li>
                        </a>
                    </volist>
                </ul>
            </div>

            <div style="width:110px;height: 30px;border-radius: 15px;border: 1px solid #C8161D; color: #C8161D;font-size: 15px;text-align: center;
                line-height: 30px;margin-left: 350px; " class="js-infinite-scroll-loading text-center fontmsyhbd">更多</div>
            <div id="nextpage"></div>
        </div>
    </div>


    <div class="search_aside" style="display: none;">
        <div style="border: 1px solid #ededed;">
            <div class="sport_ground_item" style="margin-right: 2px;">
                <div class="sport_img">
                    <img style="margin-left: 0px;" class="my-photo" src="/public/images/active/chongqing.jpg" alt="活动图片">
                    <p class="sub_tab">
                        <span class="adress">重庆</span><span class="timer">2019年1月13日</span>
                    </p>
                    <p class="sport_tt">
                        房产后市场创新者论坛||科技赋能·增值创新
                    </p>
                </div>
                <div class="details">
                    <a href="http://www.huodongxing.com/event/1468199343300" style="color: #FFF;"
                       target="_blank">查看详情</a>
                </div>
            </div>
        </div>
    </div>
</div>
<tc_include file="Public:scripts"/>
<script src="__TMPL__Public/assets/js/jquery.infiniteScroll.js"></script>
<!-- 标签切换效果 -->
<script type="text/javascript">
    $(function () {

        var keyword = "{$keyword}";
        $("#nav li").on("click", function () {
            var index = $(this).index();
            window.location.href = "{:U('search/index')}" + "&keyword=" + keyword + "&list_index=" + index;
        });

        var list_index = "{$list_index}";
        $('#nav li:eq(' + list_index + ')').addClass('active')
        $('.result_content_item:eq(' + list_index + ')').css('display', 'block').siblings().css('display', 'none');

        $('#nextpage').infiniteScroll({
            loading:'.js-infinite-scroll-loading',
            total_pages:{$total_pages},
            success:function(content){
                var items = $(content).find('.result_content_item:eq(' + list_index + ') ul').html();
                if(items.length > 0){
                    $('.result_content_item:eq(' + list_index + ') ul').append(items);
                }
            }
        });
    })
</script>
<script src="/public/slow_img/checkImg.js"></script>

</body>
</html>